<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对象常用方法</title>
</head>
<body>
    <script>
        let people ={
            name:"Jake",
            age:12,
            height:172.5
        }
        //以数组类型打印出对象的键
        let keys = Object.keys(people)
        console.log(keys)

        //以数组类型打印出对象的值
       let values = Object.values(people)
       console.log(values)

       ////以嵌套数组类型打印出对象的键值对（小数组）
      let entries = Object.entries(people)
      console.log(entries)
      
    
    </script>
</body>
</html>